package com.easemob.chat;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import com.easemob.util.EMLog;
import java.io.File;

public class ImageMessageBody extends FileMessageBody
  implements Parcelable
{
  String thumbnailUrl;
  String thumbnailSecret = null;
  int width;
  int height;
  private boolean sendOriginalImage;
  public static final Parcelable.Creator<ImageMessageBody> CREATOR = new Parcelable.Creator()
  {
    public ImageMessageBody createFromParcel(Parcel paramAnonymousParcel)
    {
      return new ImageMessageBody(paramAnonymousParcel, null);
    }

    public ImageMessageBody[] newArray(int paramAnonymousInt)
    {
      return new ImageMessageBody[paramAnonymousInt];
    }
  };

  public ImageMessageBody()
  {
  }

  public ImageMessageBody(File paramFile)
  {
    this.localUrl = paramFile.getAbsolutePath();
    this.fileName = paramFile.getName();
    EMLog.d("imagemsg", "create image message body for:" + paramFile.getAbsolutePath());
  }

  ImageMessageBody(String paramString1, String paramString2, String paramString3)
  {
    this.fileName = paramString1;
    this.remoteUrl = paramString2;
    this.thumbnailUrl = paramString3;
  }

  public String getThumbnailUrl()
  {
    return this.thumbnailUrl;
  }

  public void setThumbnailUrl(String paramString)
  {
    this.thumbnailUrl = paramString;
  }

  public String toString()
  {
    return "image:" + this.fileName + ",localurl:" + this.localUrl + ",remoteurl:" + this.remoteUrl + ",thumbnial:" + this.thumbnailUrl;
  }

  public int describeContents()
  {
    return 0;
  }

  public void writeToParcel(Parcel paramParcel, int paramInt)
  {
    paramParcel.writeString(this.fileName);
    paramParcel.writeString(this.localUrl);
    paramParcel.writeString(this.remoteUrl);
    paramParcel.writeString(this.thumbnailUrl);
    paramParcel.writeInt(this.width);
    paramParcel.writeInt(this.height);
  }

  private ImageMessageBody(Parcel paramParcel)
  {
    this.fileName = paramParcel.readString();
    this.localUrl = paramParcel.readString();
    this.remoteUrl = paramParcel.readString();
    this.thumbnailUrl = paramParcel.readString();
    this.width = paramParcel.readInt();
    this.height = paramParcel.readInt();
  }

  public void setThumbnailSecret(String paramString)
  {
    this.thumbnailSecret = paramString;
  }

  public String getThumbnailSecret()
  {
    return this.thumbnailSecret;
  }

  public void setSendOriginalImage(boolean paramBoolean)
  {
    this.sendOriginalImage = paramBoolean;
  }

  public boolean isSendOriginalImage()
  {
    return this.sendOriginalImage;
  }

  public int getWidth()
  {
    return this.width;
  }

  public int getHeight()
  {
    return this.height;
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.chat.ImageMessageBody
 * JD-Core Version:    0.6.1
 */